<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>贷后历史表管理</title>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="plugins/bootstrap-table/css/bootstrap-table.min.css"/>
<link rel="stylesheet" href="css/layui.css" media="all"/>
<link rel="stylesheet" href="css/global.css" media="all">
<link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div class="admin-main">
	<div class="layui-tab layui-tab-brief">
	  <ul class="layui-tab-title">
	    <li class="layui-this" id="gs_his_table">公司贷后历史表</li>
	    <li id="gr_his_table">个人贷后历史表</li>
	  </ul>
	  <div class="layui-tab-content" style="height: 100px;">
	    <div class="layui-tab-item layui-show" id="gsDiv">
   		  	<form class="layui-form layui-form-pane" onsubmit="javascript:return false;">
			 	<div class="layui-input-inline">
				<label class="layui-form-label">合同编号</label>
					<div class="layui-input-block">
						<input type="text" name="companyContractNum" id="companyContractNum" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-input-inline">
				<label class="layui-form-label">检查时间</label>
					<div class="layui-input-block">
						<input type="text" name="companyCheckTime" id="companyCheckTime" autocomplete="off" class="layui-input">
					</div>
				</div>
				<button type="button" id="btn_companyQuery" class="layui-btn layui-btn">
		   			<i class="fa fa-search" aria-hidden="true"></i>查询
				</button>
				<button type="reset"  class="layui-btn layui-btn" >清空
		   			<i class="layui-icon">&#xe640;</i>
				</button>
			</form>
		    <table id="companyTable"></table>
	    </div>
	    
	    <div class="layui-tab-item" id="grDiv">
			<form class="layui-form  layui-form-pane"  onsubmit="javascript:return false;">
			<div class="layui-input-inline">
				<label class="layui-form-label">合同编号</label>
				<div class="layui-input-block">
					<input type="text" name="personContractNum" id="personContractNum" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-input-inline">
				<label class="layui-form-label">检查时间</label>
				<div class="layui-input-block">
					<input type="text" name="personCheckTime" id="personCheckTime" autocomplete="off" class="layui-input" >
				</div>
			</div>
			<button type="button" id="btn_personQuery" class="layui-btn layui-btn">
			  		<i class="fa fa-search" aria-hidden="true"></i>查询
			</button>
			<button type="reset"  class="layui-btn layui-btn" >清空
			  		<i class="layui-icon">&#xe640;</i>
			</button>
			</form>
		    <table id="personHisTable"></table>
	    </div> 
	  </div>
	</div> 
</div>
<script type="text/javascript" src="plugins/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap.min.js"></script>
<script type="text/javascript" src="plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="plugins/bootstrap-table/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="layui.js"></script>
<script type="text/javascript" src="ag/common/util.js"></script>
<script type="text/javascript" src="ag/postLoan/historyTable/company.js"></script>
<script type="text/javascript" src="ag/postLoan/historyTable/person.js"></script>
</body>
<script>
layui.use(['laydate','element'], function(){
  	var element = layui.element;
	var status = getUrlParam("stat")||"";//0 未完成 1允许2拒绝
	if(status == "1"){
		$("#gs_his_table").addClass("layui-this").siblings().removeClass("layui-this");
		$("#gsDiv").addClass("layui-show");
		$("#grDiv").removeClass("layui-show");
	}
	if(status == "2"){
		$("#gr_his_table").addClass("layui-this").siblings().removeClass("layui-this");
		$("#grDiv").addClass("layui-show");
		$("#gsDiv").removeClass("layui-show");
	}
});
</script>
</html>